package com.cloudbroker.bcs.platform.ltb.bizapi.constants.type;

/**
 * Created by daibd19671 on 2016/9/23.
 */
public enum PushType {
    TAG("0", "标签"),
    ALIAS("1", "别名"),
    REGISTRATION_ID("2", "注册id"),
    ALL("3","所有"),
    SCHEDULE("4","定时推送")
            ;

    private final String val;

    private final String description;

    private String toString;

    PushType(String val, String description ) {
        this.description = description;
        this.val = val;
    }

    public String getVal() {
        return val;
    }

    public String getDescription() {
        return description;
    }

    @Override
    public String toString() {
        if (null == toString) {
            toString = new StringBuilder().append("PushType[").append(val).append(':').append(description)
                    .append(']').toString();
        }
        return toString;
    }

}
